﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 会员表
    /// </summary>
    [Table("t_member")]
    public class Member
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column("id")]
        public long Id { get; set; }

        /// <summary>
        /// 微信OpenId
        /// </summary>
        [Column("wx_open_id")]
        public string WxOpenId { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [Column("nick_name")]
        public string NickName { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [Column("sex")]
        public int Sex { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [Column("profile")]
        public string Profile { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [Column("phone")]
        public string Phone { get; set; }

        /// <summary>
        /// 分组Id
        /// </summary>
        [Column("group_id")]
        public long GroupId { get; set; }

        /// <summary>
        /// 是否群主(1是0否)
        /// </summary>
        [Column("is_master")]
        public int IsMaster { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("remark")]
        public string Remark { get; set; }


    }
}